<div style="clear:right"></div>
<div id="ContentLayout">
	<table style="border-collapse: collapse;" id="table2" border="0" cellpadding="0" width="100%">
		<tr>
        	<td id="ContentLeft" valign="top">
            	<div id="boxCate" style="display:none;">
            		<a href="http://rongbay.com/Dich-vu-tan-nha-c287.html">Dịch vụ tận nhà</a>
				</div>
				<div style="width:729px;*width:733px;margin-top:3px;padding-top:10px; padding-bottom:10px; background:#FFF9D7;border:1px solid #E2C822; text-align: center; font-size: 15px; line-height: 50%;" class="my_msg">
					<a href="" target="_blank" style="text-decoration: none; color: rgb(255, 0, 0);"><b><?php echo $note; ?></b></a>
				</div>
				<div style="width:736px;*width:740px">
				<?php foreach ($categories as $category){?>
					<div id="Panel<?php $category[0]['category_id']; ?>" class="Panel">
						<div class="PanelTitle">
							<a href="" style="background-color: rgb(232, 100, 26);" onmouseover="listColor(287,this,1)" onmouseout="listColor(287,this,0)">
								<?php echo $category[0]['category_name']; ?> <span class="countRec">(177438)</span>
							</a>
						</div>
						<div id="Cate1" class="Item" style="height: 200px;">
							<div style="clear:both;height:1px;overflow:hidden"><span></span></div>
							
							<?php
							$style = 'style="width:49%;float:left"'; 
							if (count($category[1]) == 0 || count($category[2]) == 0)
								$style = 'style="width:100%;"';
							?>
							
							<?php foreach ($category[1] as $data){?>
							<div <?php echo $style; ?>>
								<ul>
									<li class = "itemHot">
										<a href="" title="<?php echo $data['needs_name']; ?>"><strong><?php echo $data['needs_name']; ?></strong></a>
									</li>
								</ul>
							</div>
							<?php }?>
							
							<div style="clear:both;height:1px;overflow:hidden"></div>
							
							<?php foreach ($category[2] as $kind){?>
							<div <?php echo $style; ?>>
								<ul>
									<li>
										<a href="" title="<?php echo $kind['kind_name']; ?>"><?php echo $kind['kind_name']; ?></a>
									</li>
								</ul>
							</div>
							<?php }?>
							
							<div style="clear:both;height:1px;overflow:hidden"><span></span></div>
						</div>
						<div id="height1"></div>
						<div id="heightMax1"></div>
					</div>
				<?php }?>
				</div>
			</td>
		
